package com.hudilao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hudilao.common.R;
import com.hudilao.entity.Employee;

public interface EmployeeService extends IService<Employee> {

    //管理员注册（功能暂时不用）
    R<Employee> registerEmployee(Employee employee);


    //新增员工
    R<String> saveEmployee(Employee employee);


    //员工信息分页查询
    R<Page> pageEmployee(int page, int pageSize, String username);


    //更新员工状态-改变启用禁用
    R<String> updateEmployeeStatus(Employee employee);


    //修改员工信息
    R<String> updateEmployee(Employee employee);


    //通过id查询员工
    public R<Employee> getEmployeeById(Long id) ;


    //删除员工
    R<String> deleteEmployee(Long id);
}
